<template>
	<view class="start">
		<img class="logo" src="@/static/images/logo.png" alt="" />
		<view class="logo-title">
			欢迎来到支喜到店!
		</view>
		<view class="logo-desc">
			我们致力于为商户提供全方位的数字化服务支持，助力您的生意更高效、更智能！
		</view>
		<button class="zx-btn sm start-btn" @click="openLogin">
			登录账号
		</button>
	</view>
</template>

<script>
	import { getToken } from '@/utils/auth'
	export default {
		data() {
			return {
				
			}
		},
		onShow() {
			this.isLogin()
		},
		methods: {
			openLogin(){
				uni.navigateTo({
					url:"/pages/pwn-login"
				})
			},
			isLogin(){
				if (getToken()) {
					uni.reLaunch({
						url:"/pages/work/merchant"
					})	
				  
				}
				
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.start{
		padding: 0 56rpx;
		.logo{
			margin-top: 216rpx;
			width: 120rpx;
			height: 120rpx;
			border: 4rpx solid #1E7AFF;
			border-radius: 24rpx;
		}
		.logo-title{
			margin-top: 54rpx;
			font-size: 60rpx;
			color: #333;
		}
		.logo-desc{
			margin-top: 32rpx;
			font-size: 30rpx;
			line-height: 52rpx;
			color: #999;
		}
		.start-btn{
			margin-top: 112rpx;
			
		}
		
	}
</style>
